package com.hp.test.controllers;

import com.hp.fremarker.beans.Autowired;
import com.hp.fremarker.web.mvc.Controller;
import com.hp.fremarker.web.mvc.RequestMapping;
import com.hp.fremarker.web.mvc.RequestParam;
import com.hp.test.service.SalaryService;

/**
 * @author dongxing
 **/
@Controller
public class SalaryController {


    @Autowired
    private SalaryService salaryService;

    @RequestMapping("/get_salary.json")
    public Integer getSalary(@RequestParam("name") String name, @RequestParam("exp") String exp) {
       return salaryService.calSalary(1000);

    }



}
